package com.cy1;

public class AnimalDemo {

    public static void main(String[] args) {
         Animal a=new Cat("加菲猫",25);
         a.eat();
         Cat c=(Cat) a;
         c.zhualaoshu();

         Animal b=new Dog("哈士奇",250);
         a.eat();
         Dog dog=(Dog)b ;
         dog.kanjia();





    }
}
